/*
 * @Author: 赵广成 76118299@qq.com
 * @Date: 2024-09-17 08:57:04
 * @LastEditors: 赵广成 76118299@qq.com
 * @LastEditTime: 2024-11-14 17:13:29
 * @FilePath: \tianhe\src\router\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createRouter, createWebHashHistory } from 'vue-router'


const routes = [
  {
    path: '/',
    name: '首页',
    component: () => import('../layout'),
     redirect:'/contest',
    children:[
      {
        path: '/index',
        name: 'index',
        component: () => import('../views/index/index.vue')
      },
      {
        path: '/user',
        name: '用户管理',
        component: () => import('../views/system/user/index.vue')
      },
      {
        path: '/role',
        name: '角色管理',
        component: () => import('../views/system/role/index.vue')
      },
      {
        path: '/menu',
        name: '菜单管理',
        component: () => import('../views/system/menu/index.vue')
      },
      {
        path: '/usercenter',
        name: '个人中心',
        component: () => import('../views/userCenter/index.vue')
      },
      {
        path: '/carousel',
        name: '轮播管理',
        component: () => import('../views/tab/carousel.vue')
      },
      {
        path: '/football',
        name: '球队信息',
        component: () => import('../views/tab/football.vue')
      },
      {
        path: '/dict',
        name: '类型管理',
        component: () => import('../views/system/dict/index.vue')
      },
      {
        path: '/seek',
        name: '咨询信息',
        component: () => import('../views/tab/seek.vue')
      },
      {
        path: '/video',
        name: '比赛视频',
        component: () => import('../views/tab/video.vue')
      },
      {
        path: '/contest',
        name: '"比赛信息"',
        component: () => import('../views/tab/contest.vue')
      },
      {
        path: '/vipgoods',
        name: '"会员商品信息"',
        component: () => import('../views/tab/vipgoods.vue')
      },
      {
        path: '/order',
        name: '"会员订单信息"',
        component: () => import('../views/tab/order.vue')
      }
    ]
  },



  {
    path: '/login',
    name: 'login',
    component: () => import('../views/login.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
